package com.skd.common.exception;



/*
* 错误编码枚举
*
* */
public enum BizCodeEnume {


    UNKNOW_EXCEPTION(10000,"系统未知异常"),
    VALID_EXCEPTION(10001,"参数格式异常"),
    PRODUCT_UP_EXCEPTION(11001,"商城上架异常"),
    NO_STOCK_EXCEPTION(14001,"锁定库存异常"),
    USERNAME_EXSIT_EXCEPTION(12001,"用户名已存在"),
    PHONE_EXSIT_EXCEPTION(12002,"手机号已存在"),
    USERNAME_PHONE_VALID_EXCEPTION(12003,"账号或密码错误");
    private int code;
    private String msg;

    BizCodeEnume(int code,String msg){
        this.code = code;
        this.msg = msg;
    }
    public int getCode(){
        return code;
    }

    public String getMsg(){
        return msg;
    }


}
